package com.xinhe.web.reposity;

import com.xinhe.web.entity.Shop;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface ShopRepository  extends JpaRepository<Shop, Long> {
    @Query(value = "select * from tb_shop where removed = 0 and name = ?1", nativeQuery = true)
    Shop findByName(String name);
}
